
import 'dart:convert';

/// 讯飞评测 socket 返回结果实体
class XfSocketResultEntity {
	int? code;
	String? message;
	String? sid;
	XfResultData? data;

	XfSocketResultEntity();

	XfSocketResultEntity.fromJson(Map<String, dynamic> json){
			code = json['code'];
			message = json['message'];
			sid = json['sid'];
			data = json['data'] != null ? XfResultData.fromJson(json['data']) : null;
	}

	Map<String, dynamic> toJson(){
		return {
			"code": code,
			"message": message,
			"sid": sid,
			"data": data,
		};
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}

class XfResultData {
	int? status;
	String? data;

	XfResultData();

	XfResultData.fromJson(Map<String, dynamic> json){
		status = json['status'];
		data = json['data'];
	}

	Map<String, dynamic> toJson(){
		return {
			"status": status,
			"data": data,
		};
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}